package com.dg.projeto.Conexao;


import java.sql.*;


public class Conectar {
	
	
	String host = "localhost:3306";
	String banco = "dg-projetojava";
	String url = "jdbc:mysql://" + host + "/" + banco;
	String usuario = "admin";
	String senha = "1234";
	
	
	public Conectar() throws SQLException {
				
	}
	
	public java.sql.Statement Entrar() throws SQLException {
		
		Connection abrir = DriverManager.getConnection(url, usuario, senha);
		java.sql.Statement st = abrir.createStatement();
		
		return st;
		
	}	
	
	
}
